<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::create('dawn_users', function (Blueprint $table) {
            $table->id('dawn_id')->comment("用户Id")->nullable(false); // 不允许为空
            $table->string('dawn_name')->comment("登录账号")->nullable(false);// 不允许为空
            $table->string('dawn_password')->comment("登录密码")->nullable(false);// 不允许为空
            $table->dateTime('dawn_createTime')->comment("创建时间")->nullable(false);// 不允许为空
            $table->dateTime('dawn_lastTime')->comment("最后一次登录时间")->nullable(false);// 不允许为空
            $table->dateTime('dawn_updatatime')->comment("修改用户的时间")->nullable();// 允许为空
            $table->integer('dawn_Status')->comment("当前账户状态，0 正常, 1 禁用, 3 删除")->nullable(false);// 不允许为空
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::dropIfExists('dawn_users');
    }
};
